﻿using System;
using System.Data;
using Token.Piker.BLL;
using Token.Piker.Common;

namespace Token.Piker.Web.Admin.Album
{
    public partial class PhotoList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string id = Request["id"];

            if (string.IsNullOrEmpty(id))
            {
                MessageBox.Show(this.Page, "非法的参数");
                return;
            }

            PhotoBLL bll = new PhotoBLL();
            DataSet ds = bll.GetList("Album=" + int.Parse(id));
            dataList.DataSource = ds;
            dataList.DataBind();
        }
    }
}